<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateElImagesCategoryTable extends Migration
{

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('el_images_category', function(Blueprint $table) {
            $table->increments('id');
			$table->integer('parent_id');
			$table->string('name'); //分类的名字
			$table->text('description')->nullable(); //分类描述
			$table->integer('sort')->default(99); //分类排序
            $table->timestamps();
			$table->softDeletes();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('el_images_category');
	}

}
